#
import net

from machine import Pin, I2C

import ssd1306

import machine

i2c = I2C(scl=Pin(5), sda=Pin(4))

oled = ssd1306.SSD1306_I2C(128, 64, i2c)


#ESP为服务器版

nic = net.start('AP')

sock = net.server('TCP')

while True:

    sock.send(b's')

    oled.buffer = sock.recv(1024)

    oled.show()

